package cz.muni.fi.pa165.api.dto;

import java.util.Date;
import java.util.List;

/**
 * Class representing a transfer object for ForestVisit entity
 *
 * @author Matej Cimbora
 */
public class ForestVisitDTO {

    private Long id;
    private PickerDTO pickerDTO;
    private ForestDTO forestDTO;
    private List<MushroomDTO> mushroomsFound;
    private Date dateOfVisit;
    private String description;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public PickerDTO getPickerDTO() {
        return pickerDTO;
    }

    public void setPickerDTO(PickerDTO pickerDTO) {
        this.pickerDTO = pickerDTO;
    }

    public ForestDTO getForestDTO() {
        return forestDTO;
    }

    public void setForestDTO(ForestDTO forestDTO) {
        this.forestDTO = forestDTO;
    }

    public List<MushroomDTO> getMushroomsFound() {
        return mushroomsFound;
    }

    public void setMushroomsFound(List<MushroomDTO> mushroomsFound) {
        this.mushroomsFound = mushroomsFound;
    }

    public Date getDateOfVisit() {
        return dateOfVisit;
    }

    public void setDateOfVisit(Date dateOfVisit) {
        this.dateOfVisit = dateOfVisit;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof ForestVisitDTO)) {
            return false;
        }
        ForestVisitDTO other = (ForestVisitDTO) object;
        if ((this.id == null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }
}
